
             
/**
 * Copyright (c) 2012-2013 JLLT Corp. 2012-2013,All Rights Reserved.
 * This software is published under the 金麟龙腾商贸有限公司.
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @File name:  TStorageMemberDao.java 
 * @Create on:  2012-08-08 11:02:317
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        package com.boho.ecp.deposit.custom.dao;

            
import java.sql.Connection;
import java.util.LinkedList;
import java.util.List;
import cn.boho.framework.po.CQuery;
import cn.boho.framework.po.CQueryFactoryTool;
import cn.boho.framework.po.DAO;
import cn.boho.framework.po.DynaBeanMap;
import cn.boho.framework.po.CQExp;
import cn.boho.framework.po.Pager;
import cn.boho.framework.po.ComboPager;
import cn.boho.framework.utils.DateUtils;
            
        /**
 * 【寄存客户信息:T_STORAGE_MEMBER】的Dao操作类
 * 
 */
public class TStorageMemberDao extends DAO {
	/**
	* 查询所有【寄存客户信息:T_STORAGE_MEMBER】信息
	* @param con
	* @return
	* @throws Exception
	* @date 2012-08-08
	* @author 陈伟
	*
	*/
	public static List queryTStorageMember(Connection con)throws Exception{
		List list = new LinkedList();
		StringBuffer sql = new StringBuffer();
		sql.append("select * from T_STORAGE_MEMBER");
		CQuery query = CQueryFactoryTool.createFactory().createCQuery();
		query.setCommand(sql.toString());
		list = query.getDynaBeanMapList("T_STORAGE_MEMBER", con);
		return list;
	}
	/**
	* 分页查询所有【寄存客户信息:T_STORAGE_MEMBER】信息
	* @param con
	* @param pager
	* @return
	* @throws Exception
	* @date 2012-08-08
	* @author 陈伟
	*
	*/
	public static ComboPager queryTStorageMemberByPager(Connection con,Pager pager)throws Exception{
		StringBuffer sql = new StringBuffer();
		sql.append("select * from T_STORAGE_MEMBER");
		CQuery query = CQueryFactoryTool.createFactory().createCQuery();
		query.setCommand(sql.toString());
		return query.getDynaBeanMapComboPager("T_STORAGE_MEMBER", pager,con);
	}
	/**
	* 根据主键【寄存客户编号:STORAGE_MEMEBER_NO|】获得信息
	* @param con
	* @param storageMemeberNo 寄存客户编号
	* @return
	* @throws Exception
	* @date 2012-08-08
	* @author 陈伟
	*
	*/
	public static DynaBeanMap getTStorageMemberByPk(Connection con,java.lang.Integer storageMemeberNo)throws Exception{
		DynaBeanMap dynaBeanMap = null;
		StringBuffer sql = new StringBuffer();
		sql.append("select * from T_STORAGE_MEMBER where  STORAGE_MEMEBER_NO=?");
		CQuery query = CQueryFactoryTool.createFactory().createCQuery();
		query.setCommand(sql.toString());
		query.setInt(1,storageMemeberNo);
		dynaBeanMap = query.getDynaBeanMap("T_STORAGE_MEMBER", con);
		return dynaBeanMap;
	}
}
